package main

import (
	"fmt"
	"sync/atomic"
)

func main() {
	num := uint32(18)
	delta := int32(-3)
	atomic.AddUint32(&num, uint32(delta))
	fmt.Println(num)

	atomic.AddUint32(&num, ^uint32(-(-3)-1))
	fmt.Println(num)
}